import {createRouter,createWebHistory,RouteRecordRaw} from 'vue-router';


const routes:Array<RouteRecordRaw> = [
    {
        path:"/",
        component:()=>import('../views/UserLogin.vue')
    },
    {
        path:"/Admin",
        name:"Admin",
        component:()=>import('../views/Admin.vue')
    }
]

const router = createRouter({
    history:createWebHistory(),
    routes
})


export default router;//导出router实例